import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index';
import ElementPlus from 'element-plus' // 引入 Element Plus
import 'element-plus/dist/index.css' // 引入 Element Plus 的样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue' // 引入element图标库

const app  = createApp(App);
app.use(ElementPlus); // 使用 Element Plus
app.use(router);

// 注册element图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')